package www.woniuxy.com.class112.dao;

import java.util.Date;
import java.util.List;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import www.woniuxy.com.class112.dto.IssuesDto;
import www.woniuxy.com.class112.entity.Issues;
import www.woniuxy.com.class112.entity.IssuesExample;

public interface IssuesMapper {
    long countByExample(IssuesExample example);

    int deleteByExample(IssuesExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Issues record);

    int insertSelective(Issues record);

    List<Issues> selectByExample(IssuesExample example);

    Issues selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Issues record, @Param("example") IssuesExample example);

    int updateByExample(@Param("record") Issues record, @Param("example") IssuesExample example);

    int updateByPrimaryKeySelective(Issues record);

    int updateByPrimaryKey(Issues record);

    void selectIssues(Issues toBean);

    List<Issues> all(Long userId);

//    Page<IssuesDto> selectIssuesDto(@Param("issueType") Long issueType, @Param("issueState")Long
//            issueState, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("description") String description);


    List<IssuesDto> selectIssuesDto(@Param("issueType") Long issueType,@Param("issueState") Long issueState,
                                    @Param("startTime") Date startTime,@Param("endTime") Date startTime1,@Param("description") String description);
}